<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path;
%>
<c:set var="bp" value="<%=basePath%>"></c:set>
<html>
<head>
    <meta charset="utf-8">
    <title>对话</title>

    <script type="text/javascript" src="${bp}/static/js/jquery.js"></script>
    <link rel="stylesheet" href="${bp}/static/css/websocket.css">

</head>
<body>
<div class="whole">
    <div class="top">
        <h4>与${oncourier.dname}正在沟通</h4>
    </div>
    <div style="height:300px"><h7 id="messagetop2"></h7>
        <h7 id="messagetop" ></h7></div>


    <!-- 内容填写 -->
    <div class="text">
        <input type="text"  id="mes">
        <input type="hidden" id="did" value="${oncourier.did}">
        <input type="hidden" id="dname" value="${oncourier.dname}">
        <button onclick="send()">发送</button>
    </div>
    <div class="bottom"></div>
</div>

<!-- 1.显示昵称
2.实时显示聊天记录 -->


</body>
<script type="text/javascript" src="${bp}/static/js/websocketconnection.js">
</script>
</html>